from tkinter import *

root = Tk()

x = int(input("x:"))
y = int(input("y:"))
n = int(input("n:"))

if n == 0 and x>=0 and x<=500 and y>=0 and y<=500:
    pass
else:
    if x+20*n<=500 and y+30*n<=500 and x*n>=0 and y*n>=0:
        pass
    else:
        print("Размер фигуры превышает максимальный размер")
        exit()

coords = [0*n+x,0*n+y,10*n+x,0*n+y,10*n+x,10*n+y,20*n+x,10*n+y,20*n+x,30*n+y,10*n+x,30*n+y,10*n+x,20*n+y,0*n+x,20*n+y]

root.geometry("500x500")
root.title("ИТ марафон")

c = Canvas(bg = "white", height = 500, width = 500)
c.pack(anchor=CENTER, expand=1)

c.create_polygon(coords)
